package com.atchangsha.system.common.exception;

public enum  CodeEnum implements EnumInterface{
    SUCCESS(200, "请求成功"),
    ERROR(-1, "服务器内部错误，请告知管理员"),
    ;
    int code;
    String msg;

    CodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
